package com.hq.bootdemo.mapper;

import com.hq.bootdemo.entity.TypeEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TypeMapper {
    List<TypeEntity> selectAll(String condition);
    int insertOne(@Param("type") TypeEntity type);

    int delOne( @Param("id") Integer id);

    TypeEntity selectOne(@Param("id") Integer id);

    int update(@Param("type") TypeEntity type);
    int updateCount(@Param("id")int id,@Param("rCount") int rCount);
}
